power = 1
study = "a"
unstudy = "b"
state = "a"
temp = 0
for i in range (0, 365):
    if state == "a" and (temp in [1, 2, 3]):
                    power *= 1
                    temp = (temp + 1)% 7
    elif state == "a" and (temp in [0, 4, 5,6]):
                        power *= 1.01
                        temp = (temp + 1)% 7
    elif state == "b":
                        temp = 0
print("连续365天后能力值为{:.2f}".format(power))
